﻿<%@ page import="kickboxing.model.Uzytkownik"%>
<%-- <%@ page errorPage="WEB-INF/bledy.jsp"%> --%>
<%@ page import="kickboxing.model.Uzytkownik"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
// w celu poprawnie dzialajacej sesji:
response.setHeader("Cache-Control","no-store"); 
response.setHeader("Pragma","no-cache"); 
response.setDateHeader ("Expires", 0); 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>UKS GLADIATOR</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <META NAME="Keywords" CONTENT="gladiator, binczarowa"> 
  <meta name="description" content="UKS GLADIATOR BINCZAROWA" /> 
 
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="ajaxify-v2/advajax.js"></script>
<script type="text/javascript" src="js/skrypt1.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" charset="iso-8859-2" src="js/skin.js"></script>


<!-- skrrypt ładujący stronę jsp do div-a 'newsy' -->
<script type="text/javascript">
$(document).ready(function(){

	$("#newsy").load('newses.jsp');
	
});	
</script>

</head>

<body>
<center><p><font color=white size=3 family=Verdana>Strona w trakcie testowania. Mogą wyskakiwac błędy.</font></p></center>
<%
String message = request.getParameter("message");
if(message != null){ %>
			<h3 style="color:white; text-align:center; background-color: red">
			<% out.println(message);
		}
		
%></h3>
<div id="main">
  
<div id="logo2">
 	<embed src="img/logo/logo.swf" quality="high" wmode="transparent" bgcolor="#000000" width="343" height="54" name="logo" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</div>

<div id="top">   
	<jsp:include page="WEB-INF/session.jsp"></jsp:include>    		 

  	<ul id=menu>
		<li><a href=index.jsp>home</a></li>
		<li><a href=?web=aktualnosci>aktualności</a></li>
    	<li><a href="?web=galeria">galeria</a></li>
    	<li><a href="?web=oklubie">o klubie</a></li>
    	<li><a href="?web=kontakt">kontakt</a></li>
	</ul>	  
</div>
  
<div id="photos">
 	<img src="img/glad.jpg" name="UKS GLADIATOR"></img>
</div>
</div>

<div id="srodek">

	<%if(( request.getParameter("id") == null || request.getParameter("id") == "") && request.getParameter("web") == null && request.getParameter("pages") == null) { %>

<div id="bg_above_newsy">
<div id="pyk">
	<jsp:include page="newses_include.jsp"></jsp:include>
</div>	
</div>		
<div id="newsy">
<!-- ajax -->
</div>

<div id="zawodnicy"><a class="link" href="?web=zawodnicy"><span> </span></a></div>
<div id="treningi"><a class="link2" href="?web=treningi"><span> </span></a></div>
	
	
	<%}else if(request.getParameter("id") != null){
	String x = request.getParameter("id");
	%>	

	<jsp:include page="selectedNews.jsp">
	<jsp:param value="<%=x%>" name="nr"/>
	</jsp:include>
	
	<%
	}else if(request.getParameter("web") != null || request.getParameter("pages") != null){
		
	
					if(request.getParameter("web").equals("aktualnosci") || request.getParameter("pages") != null){
					%>	
				
					<jsp:include page="aktualnosci.jsp"></jsp:include>
					
					<%
					}else if(request.getParameter("web").equals("galeria")){
					%>
					
					<jsp:include page="pokazGelerieZdjec.jsp"></jsp:include>
					
					<%	
					}else if(request.getParameter("web").equals("wyswietlGalerieZdjec")){
					%>
						
					<jsp:include page="wyswietlGalerieZdjec.jsp"></jsp:include>
						
					<%	
					}
					else if(request.getParameter("web").equals("oklubie")){
					%>
							
					<jsp:include page="oklubie.jsp"></jsp:include>
							
					<%	
					}
					else if(request.getParameter("web").equals("kontakt")){
					%>
								
					<jsp:include page="kontakt.jsp"></jsp:include>
							
					<%	
					}
					else if(request.getParameter("web").equals("skins")){
					%>
									
					<jsp:include page="skins.jsp"></jsp:include>
								
					<%	
					}
					else if(request.getParameter("web").equals("mojprofil")){
					%>
										
					<jsp:include page="userPanel.jsp"></jsp:include>
									
					<%	
					}
					else if(request.getParameter("web").equals("changefoto")){
					%>
											
					<jsp:include page="dodajZdjecieProfilowe.jsp"></jsp:include>
									
					<%	
					}
					else if(request.getParameter("web").equals("addInfo")){
						%>
												
						<jsp:include page="dodajInformacje.jsp"></jsp:include>
										
						<%	
					}
					else if(request.getParameter("web").equals("treningi")){
					%>
												
					<jsp:include page="treningi.jsp"></jsp:include>
										
					<%	
					}
					
					else if(request.getParameter("web").equals("zawodnicy")){
						if(request.getParameter("zawodnik") != null){
						%>
											
						<jsp:include page="selectedZawodnik.jsp"></jsp:include>
					
						<%
						}else{%>
						<jsp:include page="zawodnicy.jsp"></jsp:include>
						<%}
							
					}
		
	}%>

</div>
<div id="dol">
	
	<table border=0 align=middle valign=middle><tr align=middle valign=middle>
	<td align=left valign=top>Sponsorzy:<br><br><img src="img/sponsors/cttg.png"></img>
	<td><img src="img/sponsors/marogobud.png"></img>
	<td><img src="img/sponsors/admax.png"></img>
	<td><img src="img/sponsors/logo.png"></img>
	<td><img src="img/sponsors/grybow.png"></img>
	<td><img src="img/sponsors/graffiti.png"></img>
	
	</table>
	<a href="?web=skins"> zmien skorke</a>
	<%@ include file="counter.jsp" %><h5>Liczba odwiedzin: <%= count %></h5>
	
	<br>
	

	
</div>  

	
</body>
</html>